package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 发布产品信息对象 jt_product_publish
 * 
 * @author Alan Zhang
 * @date 2025-04-22
 */
public class JtProductPublish extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品id */
    private Long productId;

    /** 产品标题名称 */
    @Excel(name = "产品标题名称")
    private String productTitle;

    /** 产品简称 */
    @Excel(name = "产品简称")
    private String productSimpleName;

    /** 款式编码 */
    @Excel(name = "款式编码")
    private String styleNo;

    /** 货币 CNY USD */
    @Excel(name = "货币 CNY USD")
    private String currency;

    /** 售价(元) */
    @Excel(name = "售价(元)")
    private BigDecimal salePrice;

    /** 市场价 */
    @Excel(name = "市场价")
    private BigDecimal marketPrice;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String imageUrl;

    /** 缩略图片路径 */
    @Excel(name = "缩略图片路径")
    private String thumbnailUrl;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String details;

    /** 状态（0待发布 1已上架 2下架 3删除） */
    @Excel(name = "状态", readConverterExp = "0=待发布,1=已上架,2=下架,3=删除")
    private Integer status;

    /** 发布地区 中国,伊拉,迪拜 */
    @Excel(name = "发布地区 中国,伊拉,迪拜")
    private String publishRegion;

    /** 发布地区码 */
    @Excel(name = "发布地区码")
    private String publishCountryCode;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date onSaleTime;

    /** 发布产品SKU信息信息 */
    private List<JtProductPublishSku> jtProductPublishSkuList;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setProductTitle(String productTitle) 
    {
        this.productTitle = productTitle;
    }

    public String getProductTitle() 
    {
        return productTitle;
    }

    public void setProductSimpleName(String productSimpleName) 
    {
        this.productSimpleName = productSimpleName;
    }

    public String getProductSimpleName() 
    {
        return productSimpleName;
    }

    public void setStyleNo(String styleNo) 
    {
        this.styleNo = styleNo;
    }

    public String getStyleNo() 
    {
        return styleNo;
    }

    public void setCurrency(String currency) 
    {
        this.currency = currency;
    }

    public String getCurrency() 
    {
        return currency;
    }

    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) 
    {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice() 
    {
        return marketPrice;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setThumbnailUrl(String thumbnailUrl) 
    {
        this.thumbnailUrl = thumbnailUrl;
    }

    public String getThumbnailUrl() 
    {
        return thumbnailUrl;
    }

    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setPublishRegion(String publishRegion) 
    {
        this.publishRegion = publishRegion;
    }

    public String getPublishRegion() 
    {
        return publishRegion;
    }

    public void setPublishCountryCode(String publishCountryCode) 
    {
        this.publishCountryCode = publishCountryCode;
    }

    public String getPublishCountryCode() 
    {
        return publishCountryCode;
    }

    public void setOnSaleTime(Date onSaleTime) 
    {
        this.onSaleTime = onSaleTime;
    }

    public Date getOnSaleTime() 
    {
        return onSaleTime;
    }

    public List<JtProductPublishSku> getJtProductPublishSkuList()
    {
        return jtProductPublishSkuList;
    }

    public void setJtProductPublishSkuList(List<JtProductPublishSku> jtProductPublishSkuList)
    {
        this.jtProductPublishSkuList = jtProductPublishSkuList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productTitle", getProductTitle())
            .append("productSimpleName", getProductSimpleName())
            .append("styleNo", getStyleNo())
            .append("currency", getCurrency())
            .append("salePrice", getSalePrice())
            .append("marketPrice", getMarketPrice())
            .append("categoryId", getCategoryId())
            .append("imageUrl", getImageUrl())
            .append("thumbnailUrl", getThumbnailUrl())
            .append("details", getDetails())
            .append("status", getStatus())
            .append("publishRegion", getPublishRegion())
            .append("publishCountryCode", getPublishCountryCode())
            .append("onSaleTime", getOnSaleTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("jtProductPublishSkuList", getJtProductPublishSkuList())
            .toString();
    }
}
